package com.pfsoft.service.impl;/**
 * @author PF
 * Created by dell on 2018-03-22.
 */

import com.pfsoft.models.Article;
import com.pfsoft.repository.ArticleRepository;
import com.pfsoft.service.IArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * com.pfsoft.service.impl
 *
 * @author PF
 * @create 2018-03-22 11:30
 **/
@Service
public class ArticleServiceImpl implements IArticleService {

    @Autowired
    private ArticleRepository articleRepository;

    @Override
    public List<Article> getArticle() {
        return articleRepository.findAll();
    }
}
